class Phone:
    Id_card=110
    Factory='Apple'
    def __init__(self,brand,color,price):
        self.brand=brand
        self.color=color
        self.price=price
        print(f"{self.brand} {self.color} {self.price} {self.Factory} {self.Id_card}")

class MyPhone(Phone):
    def callby5g(self):
        print(f"子类调用父类方法")
phone=MyPhone('iPhone','red',10000)